<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">


<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>PetStore UOC - Practical Case</title>
	
</h:head>

<h:body> 
  <div id="layout">
	<div id="top" class="top">
		<ui:insert name="top">
			<table width="100%" cellspacing="0" border="0"
			  background="#{resource['images:bkg-topbar.gif']}">
			  <tr>
			    <td width="26"><img border="0" src="#{resource['images:petstore.gif']}"/></td>  
			  </tr>
			</table>
		</ui:insert>
	</div>
 </div>
 </h:body> 
 
  <h:form align="left" >
  <p><b><font face="geneva,verdana,arial" size="4">Order Shipping Adress</font></b>
    </p>	
     <p>
  <font face="geneva,verdana,arial" size="2">
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Address:</b><input type="text"  name="address" value="#{neworder.customer.shippingAddress.address}"  style=" width:147px;"/>
       </font>
  
     </p>
      <p>
     <font face="geneva,verdana,arial" size="2">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>City:</b> <input type="text"  name="city" value="#{neworder.customer.shippingAddress.city}"  style=" width:147px;"/>
     </font>
     </p>
      <p>
       <font face="geneva,verdana,arial" size="2">
         <b>Postal code:</b> <input type="text"  name="postalCode" value="#{neworder.customer.shippingAddress.postalCode}"  style=" width:147px;"/>
     	</font>
     </p>
<h:commandButton value="Confirm" immediate="true" action="#{neworder.Different}" >
				<f:param name="address" value="address"></f:param>
                 <f:param name="city" value="city"></f:param>
                 <f:param name="postalCode" value="postalCode"></f:param> 		
                         <f:param name="idOrder" value="#{neworder.customer.shippingAddress}"></f:param> 		
                 
					</h:commandButton> 	
		</h:form>			
	
</html>
